﻿using GolSig.Library;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;

namespace Test.GolSig.Library.BoardSpecs
{
    
    
   
    [TestClass()]
    public class WhenCreatingBoard
    {

        [TestMethod()]
        public void GivenValidBoardSize_ThenShouldThrowException()
        {
            BoardSize boardSize = new BoardSize(1,1);
            Board target = new Board(boardSize);
            Assert.IsNotNull(target);
        }
      
        [TestMethod(), ExpectedException(typeof(System.ArgumentNullException))]
        public void GivenNullBoardSize_ThenShouldThrowException()
        {
            BoardSize boardSize = null; 
            Board target = new Board(boardSize);
            Assert.Fail("expected exception");
        }

    }
}